package org.tao.lightningmq.broker.core;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author lht
 * @date 2025/1/4 - 21:45
 * @description:
 */
public class ConsumeQueueMMapFileModelManager {

    private final Map<String, List<ConsumeQueueMMapFileModel>> consumeQueueMMapFileModelMap;

    public ConsumeQueueMMapFileModelManager() {
        consumeQueueMMapFileModelMap = new HashMap<>(16);
    }

    public void put(String topic, List<ConsumeQueueMMapFileModel> consumeQueueMMapFileModelList) {
        consumeQueueMMapFileModelMap.put(topic, consumeQueueMMapFileModelList);
    }

    public List<ConsumeQueueMMapFileModel> get(String topic) {
        return consumeQueueMMapFileModelMap.get(topic);
    }
}
